<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Http\Requests\CoinsExceptionRequest;
use App\Http\Resources\HomeResource;
use App\Http\Services\Admin\CoinsExceptionRecordService;
use Illuminate\Http\Request;

class ExceptionController extends Controller
{

    public function list(Request $request, CoinsExceptionRecordService $service)
    {
        return $service->make($request->input())->get();
    }


    public function detail(CoinsExceptionRequest $request ,CoinsExceptionRecordService $service)
    {
        return $service->detail($request->input('id'));
    }

}
